#ifndef _XML_H_
#define _XML_H_

#include <string.h>
#include "str.h"
#include "events.h"
#include <assert.h>
#include <pthread.h>

typedef struct _xml_object {
	char *id;
	char *addr;
	struct _xml_object *prev;
	struct _xml_object *next;
} xml_object;

xml_object *xptr; // global xml storage

void xml_init_storage( char *path );

void xml_free_db( );

//int xml_last_id( char *xml, char *last_id );
char* xml_get_url( char *id );
char * xml_compress_new( char* addr );


#endif

